#ifndef COM_H
#define COM_H

#include "pub.h"

#undef EXT
#ifdef COM_C
#define EXT
#else
#define EXT extern
#endif

typedef struct
{
  INT8U buf[10];
  INT8U posi;

}S_comBuf;

EXT S_comBuf comBuf;

EXT INT8U getOneChComData(INT8U chNo, INT8U *pDst, INT16U dstLen);
EXT INT16U getAllChComData(INT8U *pDst, INT16U dstLen);
EXT void comRcvProc(void);
#endif
